"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get("/", controller.home.index);

    router.get("/codes/:mobile", controller.home.getCode);
    router.post("/login", controller.home.login);

    router.get("/questions", controller.question.index);
    router.get("/questions/types", controller.question.types);
    router.post("/questions", controller.question.create);
};
